package cn.ithers.springcloud.service;

import cn.ithers.springcloud.entities.CommonResult;
import cn.ithers.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @Author: zhanghuan
 * @date: 2020/11/29 11:36
 * @description:
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444, "服务降级返回,---PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}